package cn.kgc.vue.service;

import cn.kgc.vue.commons.QueryCondition;
import cn.kgc.vue.commons.ResponseResult;
import cn.kgc.vue.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
* @author mengshun
* @description 针对表【sys_role】的数据库操作Service
* @createDate 2023-12-07 09:12:11
*/
public interface RoleService extends IService<Role> {

    ResponseResult roleList(QueryCondition<Role> queryCondition);

    ResponseResult removeRoleById(Integer rid);

    ResponseResult getPermissionsByRoleId(Integer rid);

    ResponseResult addPermissionsByRoleId(Map<String, Object> permissions);
}
